/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.confiteriofuentes.modelo;

import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Sala4
 */
public interface IDAO<T> {

    void insert(T t) throws SQLException;

    void delete(T t) throws SQLException;

    List<T> getAll() throws SQLException;

    T find(Integer id) throws SQLException;

    void update(T t) throws SQLException;
}
